<?php 	
	$m_hostname ='localhost';
	$m_userName ='root';
	$m_password='';
	$m_db ='demo';
	class DataProvider{
		/*
		private $m_hostname ='localhost';
		private $m_userName ='root';
		private $m_password='';
		private $m_db ='';
		private $m_dbCon = null;
		private $result ;
		*/
		public static function ExecuteQuery($mysql){
			$connection = mysql_connect("localhost","root","") or
			die ("couldn't connect to localhost");
			mysql_select_db("demo",$connection);
			mysql_query("set names 'utf8'");
			$result = mysql_query($mysql,$connection);
			mysql_close($connection);
			return $result;
		}
		public static function ExecuteQueryJson($mysql){
			$connection = mysql_connect("localhost","root","",'json') or
			die ("couldn't connect to localhost");
			mysql_select_db("demo",$connection);
			mysql_query("set names 'utf8'");
			$result = mysql_query($mysql,$connection);
			mysql_close($connection);
			return $result;
		}
		public static function ExecuteQueryParamter($mysql){
			$connection = mysql_connect("localhost","root","",false,65536) or
			die ("couldn't connect to localhost");
			mysql_select_db("demo",$connection);
			mysql_query("set names 'utf8'");
			$result = mysql_query($mysql,$connection);
			mysql_close($connection);
			return $result;
		}
	}
?>